This is done by implicitly passing a pointer to the
invoking object
to the method. This pointer can be accessed within the methods as this.
The definitions of methods setX() and setY() make use
of class
members _x and _y, respectively.
If invoked by an object, these members are automatically' mapped to the correct
object.
void
Point::setX(const int val) {
this->_x = val; // Use this to
reference invoking object
}
void
Point::setY(const int val) {
this->_y = val;
}